package world.criver.h50909.controller;

import jakarta.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import world.criver.h50909.dao.daoInitialize;
import world.criver.h50909.response.resBaseInfo;
import world.criver.h50909.response.resIni;
import world.criver.h50909.service.serInitialize;

@RestController
@RequestMapping("/home")
public class conInitialize implements daoInitialize {
    @Autowired
    private serInitialize serInitialize;
    @Override
    @GetMapping("/ini")
    public resIni ini(HttpServletRequest http) {
        return serInitialize.ini(http);
    }

    @Override
    @GetMapping("/base/info")
    public resBaseInfo queryBaseInfo() {
        return serInitialize.queryBaseInfo();
    }
}